import requests from "./request";
export const userLogin=(data)=>{
    console.log("data的数据==》",data)
    return requests({
        url:'/user/login',
        method:'get',
        params:data
    })
}

export const addProvinceData=(data)=>{
    console.log("addProvinceData的数据==》",data)
    return requests({
        url:'/add/provincedata',
        method:'post',
        data:data
    })
}

export const addCountryData=(data)=>{
    console.log("addCountryData的数据==》",data)
    return requests({
        url:'/add/countrydata',
        method:'post',
        data:data
    })
}

export const addPersonalInforData=()=>{
    return requests({
        url:'/get/persondata',
        method:'get'
    })
}

export const delPersonInforData=(data)=>{
    console.log("delPersonInforData data===》",data)
    return requests({
        url:'/delete/persondata',
        method:'post',
        data:data
    })
}

export const updatePersonInforData=(data)=>{
    console.log("更新的数据==>",data)
    return requests({
        url:'/update/provincedata',
        method:'post',
        data:data
    })
}
